package com.shy.collect.service;

import com.shy.configs.mvc.models.dto.OperatorLoginDto;
import com.shy.configs.mvc.models.menus.SubMenu;
import com.shy.configs.mvc.models.query.OperatorLoginQuery;

import java.util.List;

public interface OperatorService {
    /**
     * 用户登录
     *
     * @param loginQuery
     * @return
     */
    OperatorLoginDto login(OperatorLoginQuery loginQuery);

    /**
     * 查询菜单
     *
     * @param operatorId
     * @return
     */
    List<SubMenu> queryMenuByOperatorId(Long operatorId);

    /**
     * 退出登录
     *
     * @param operatorId`
     */
    boolean logout(Long operatorId);
}
